package cn.u313.config;

/**
 * @ProjectName: bot_220624
 * @Package: cn.u313.config
 * @ClassName: AiConfig
 * @Author: 柳苏言
 * @Description:
 * @Date: 2023/8/13 13:55
 * @Version: 1.0
 */
public class AiConfig {
    private static String json = "{\n" +
            "  \"enable_hr\": false,\n" +
            "  \"denoising_strength\": 0,\n" +
            "  \"firstphase_width\": 0,\n" +
            "  \"firstphase_height\": 0,\n" +
            "  \"hr_scale\": 2,\n" +
            "  \"hr_upscaler\": \"\",\n" +
            "  \"hr_second_pass_steps\": 0,\n" +
            "  \"hr_resize_x\": 0,\n" +
            "  \"hr_resize_y\": 0,\n" +
            "  \"prompt\": \"%s\",\n" +
            "  \"styles\": [\n" +
            "    \"\"\n" +
            "  ],\n" +
            "  \"seed\": -1,\n" +
            "  \"subseed\": -1,\n" +
            "  \"subseed_strength\": 0,\n" +
            "  \"seed_resize_from_h\": -1,\n" +
            "  \"seed_resize_from_w\": -1,\n" +
            "  \"sampler_name\": \"\",\n" +
            "  \"batch_size\": 1,\n" +
            "  \"n_iter\": 1,\n" +
            "  \"steps\": %s,\n" +
            "  \"cfg_scale\": 7,\n" +
            "  \"width\": %s,\n" +
            "  \"height\": %s,\n" +
            "  \"restore_faces\": false,\n" +
            "  \"tiling\": false,\n" +
            "  \"do_not_save_samples\": false,\n" +
            "  \"do_not_save_grid\": false,\n" +
            "  \"negative_prompt\": \"\",\n" +
            "  \"eta\": 0,\n" +
            "  \"s_churn\": 0,\n" +
            "  \"s_tmax\": 0,\n" +
            "  \"s_tmin\": 0,\n" +
            "  \"s_noise\": 1,\n" +
            "  \"override_settings\": {},\n" +
            "  \"override_settings_restore_afterwards\": true,\n" +
            "  \"script_args\": [],\n" +
            "  \"sampler_index\": \"Euler\",\n" +
            "  \"script_name\": \"\",\n" +
            "  \"send_images\": true,\n" +
            "  \"save_images\": false,\n" +
            "  \"alwayson_scripts\": {}\n" +
            "}";
    public static String buildConfig(String text,int steps,int width,int height){
        return String.format(json,text,steps,width,height);
    }
}
